/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import java.io.InputStream;
/*    */ import java.security.MessageDigest;
/*    */ import java.security.NoSuchAlgorithmException;
/*    */ 
/*    */ public class nn
/*    */ {
/* 10 */   private static final char[] q = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
/* 11 */   private static final char[] g = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
/*    */   
/*    */   public static String v(InputStream a) throws IOException {
/* 14 */     return v(v(a));
/*    */   }
/*    */   
/*    */   public static byte[] v(InputStream a) throws IOException {
/* 18 */     return v(v(), a);
/*    */   }
/*    */   
/*    */   public static MessageDigest v() {
/* 22 */     return v("MD5");
/*    */   }
/*    */   
/*    */   public static MessageDigest v(String a) {
/*    */     try {
/* 27 */       return MessageDigest.getInstance(a);
/* 28 */     } catch (NoSuchAlgorithmException noSuchAlgorithmException) {
/* 29 */       throw new IllegalArgumentException(noSuchAlgorithmException);
/*    */     } 
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static MessageDigest v(MessageDigest a, InputStream inputStream) throws IOException {
/* 38 */     byte[] arrayOfByte = new byte[1024];
/*    */     
/* 40 */     for (int i = inputStream.read(arrayOfByte, 0, 1024); i > -1; i = inputStream.read(arrayOfByte, 0, 1024)) {
/* 41 */       a.update(arrayOfByte, 0, i);
/*    */     }
/*    */     
/* 44 */     return a;
/*    */   }
/*    */   public static String v(byte[] a) {
/* 47 */     return new String(v(a));
/*    */   }
/*    */   public static char[] v(byte[] a) {
/* 50 */     return v(a, true);
/*    */   }
/*    */   public static char[] v(byte[] a, boolean bool) {
/* 53 */     return v(a, bool ? q : g);
/*    */   }
/*    */   public static char[] v(byte[] a, char[] arrayOfChar) {
/* 56 */     int i = a.length;
/* 57 */     char[] arrayOfChar1 = new char[i << 1];
/* 58 */     int j = 0;
/*    */     
/* 60 */     for (int k = 0; j < i; j++) {
/* 61 */       arrayOfChar1[k++] = arrayOfChar[(0xF0 & a[j]) >>> 4];
/* 62 */       arrayOfChar1[k++] = arrayOfChar[0xF & a[j]];
/*    */     } 
/*    */     
/* 65 */     return arrayOfChar1;
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\nn.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */